#!/usr/bin/env python
# -*- coding:utf-8 -*-
#冻结在上一次的操作点，下次再执行时，继续执行
def func(arg):
 seed= 0
 while True:
     seed=seed+1
     if seed >arg:
         return
     else :
         yield seed
for i in func(3):
    print i
